home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
graphics
/
freepixl
/
_SETUP.1
/
Flash.pxl
< prev
next >
Wrap
Text File
|
2000-12-23
|
1KB
|
63 lines
Initialize:
SetColorPalette(GENERATE)
WinGetActive(Win$)
UseCoordinates(PIXEL)
GoSub Draw_Blue_Shade
UseBackGround(TRANSPARENT,192,192,192)
DrawBackGround
SetMouse(0,0,300,200,Test,X,Y)
WaitInput(100) {let NT and 95 catch up}
InfoMenu(REMOVE)
SetMenu()
WinLocate(Win$,100,100,400,320,Res){300x220}
Title$ = "Dialog Frame Box Example"
WinTitle(Win$, Title$)
{SetMenu("Exit!",Leave,
ENDPOPUP,
"Try",IGNORE,
"Test",Test,
"Restart",Initialize,
ENDPOPUP) }
Wait_for_Input:
WaitInput()
Leave:
End
Test:
GoSub Draw_Blue_Shade
DrawBitMap(50,50, "..\samples\OV09.rle") WaitInput(600)
DrawBitMap(50,50,"..\samples\OV10.rle") WaitInput(600)
DrawBitMap(50,50,"..\samples\OV11.rle")
Goto Wait_for_Input
{======================================================================}
{ Subroutine Draw_Blue_Shade: create a shaded background, black at top }
Draw_Blue_Shade:
Set Counter = 1
Set Pen_Colour = 0
InitLoop_0:
Set Counter = 1
Set Br_Colour = 0
Set Y1 = 1
Set Y2 = 04
WinGetClientRect(Title$,cx1,cy1,cx2,cy2)
StartLoop_0:
If Counter > cy2 Then Goto EndLoop_0
UsePen(NULL,1,0,0,Br_Colour)
UseBrush(SOLID,0,0,Br_Colour)
Set Y1 = Counter
Set Y2 = Counter + 4
DrawRectangle(1,Y1,300,Y2)
If Br_Colour < 238 Then Set Br_Colour = Br_Colour + 6
Set Counter = Counter + 2
Goto StartLoop_0
EndLoop_0:
Return